package com.ziyun.pop.modules.storeGoodsCategoryTwd.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ziyun.pop.modules.storeGoodsCategoryTwd.dao.StoreGoodsCategoryTwdDao;
import com.ziyun.pop.modules.storeGoodsCategoryTwd.entity.StoreGoodsCategoryTwdEntity;
import com.ziyun.pop.modules.storeGoodsCategoryTwd.service.StoreGoodsCategoryTwdService;
import io.renren.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import io.renren.common.utils.PageUtils;


@Service("storeGoodsCategoryTwdService")
public class StoreGoodsCategoryTwdServiceImpl extends ServiceImpl<StoreGoodsCategoryTwdDao, StoreGoodsCategoryTwdEntity> implements StoreGoodsCategoryTwdService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<StoreGoodsCategoryTwdEntity> page = (Page<StoreGoodsCategoryTwdEntity>) this.page(
                new Query<StoreGoodsCategoryTwdEntity>(params).getPage(),
                new QueryWrapper<StoreGoodsCategoryTwdEntity>()
        );

        return new PageUtils(page);
    }

}
